<?php
//
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$goodsid=intval($_RQ['goodsid']);
	if(!$goodsid){
		exi('请先选择商品！','error');
	}
	$goods=pdo_get('jy_weishop_goods',array('id'=>$goodsid),array('title','content'));
	if(!$goods){
		exi('指定商品不存在！','error');
	}
	$goods['content']=htmlspecialchars_decode($goods['content']);
	$return['goods']=$goods;
	exi($return);
}


?>